import { IFeidaoAiBrowserComponent } from "@feidao/web/interfaces";
import Carousel from '@feidao/widgets/fd-wh000000'
import render from "@feidao/web/atom/browser/render/render";
import p01 from "./p01";
import p02 from "./p02";
import p03 from "./p03";
import p04 from "./p04";
import p10 from "./p10";
import p09 from "./p09";
import p08 from "./p08";
import p07 from "./p07";
import p06 from "./p06";
import p05 from "./p05";
export default async function a000(fd: IFeidaoAiBrowserComponent, ...args: any[]) {

	// 轮播图初始化
	render(fd, [], p01, 'p01', 'inner');

	// 饼图初始化
	render(fd, [], p02, 'p02', 'inner');

	// 柱状图＆折线图初始化
	render(fd, [], p03, 'p03', 'inner');

	// 折线图初始化
	render(fd, [], p04, 'p04', 'inner');

	// 柱状图初始化
	render(fd, [], p05, 'p05', 'inner');

	// 甘特图初始化
	render(fd, [], p06, 'p06', 'inner');

	// 开关按钮初始化
	render(fd, [], p07, 'p07', 'inner');

	// 环状图初始化
	render(fd, [], p08, 'p08', 'inner');

	// 评分初始化
	render(fd, [], p09, 'p09', 'inner');

	// 弹窗初始化
	render(fd, [], p10, 'p10', 'inner');

	const carousel = fd.data.node.querySelector<Carousel>('#fd-wh000000-001');
	// debugger
	carousel.setAttribute('value', JSON.stringify([{ "imgsrc": "images/320x160-3.jpg", "imgtitle": "1", "imghref": "www.baidu.com" },
	{ "imgsrc": "images/320x160-2.jpg", "imgtitle": "2", "imghref": "www.baidu.com" }
	]));
}